next

open fun next()

Moves to the next media source in the playlist.

This method increments the internal index to point to the next source. It also manages handler callbacks to ensure the transition to the next source happens smoothly, potentially with a slight delay. Any existing callbacks for next or auto-next operations are removed before posting a new callback for the next source.